package com.me.modules.questionnaire.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.me.modules.questionnaire.dao.QuCheckboxDao;
import com.me.modules.questionnaire.entity.QuCheckboxEntity;
import com.me.modules.questionnaire.service.QuCheckboxService;



@Service
public class QuCheckboxServiceImpl implements QuCheckboxService {
	@Autowired
	private QuCheckboxDao quCheckboxDao;

	@Override
	public QuCheckboxEntity queryObject(Integer id){
		return quCheckboxDao.queryObject(id);
	}

	@Override
	public List<QuCheckboxEntity> queryList(Map<String, Object> map){
		return quCheckboxDao.queryList(map);
	}

    @Override
    public List<QuCheckboxEntity> queryListByBean(QuCheckboxEntity entity) {
        return quCheckboxDao.queryListByBean(entity);
    }

	@Override
	public int queryTotal(Map<String, Object> map){
		return quCheckboxDao.queryTotal(map);
	}

	@Override
	public int save(QuCheckboxEntity quCheckbox){
//		  quCheckbox.setId(Utils.uuid());

		return quCheckboxDao.save(quCheckbox);
	}

	@Override
	public int update(QuCheckboxEntity quCheckbox){
        return quCheckboxDao.update(quCheckbox);
	}

	@Override
	public int delete(Integer id){
        return quCheckboxDao.delete(id);
	}

	@Override
	public int deleteBatch(Integer[] ids){
        return quCheckboxDao.deleteBatch(ids);
	}

	@Override
	public List<QuCheckboxEntity> getCheckboxs(Integer quId) {
		return quCheckboxDao.getCheckboxs(quId);
	}

	@Override
	public List<QuCheckboxEntity> getCheckboxsAnswer(Integer quId) {
		return quCheckboxDao.getCheckboxsAnswer(quId);
	}

}
